function paint(_color, _event){
	this.style.backgroundColor = _color;
	this.innerHTML = _event.clientX + 'x' + _event.clientY;
}

var button1=pi.get("button1"), button2=pi.get("button2");

pi.util.AddEvent( button1, "click", paint.curry( button1, "red" ) );
pi.util.AddEvent( button2, "click", paint.curry( button2, "green" ) );